<?php
class staticpages extends SClass {

    public function process() {
    	$staticpage = ServiceUtils::GetFactory()->getStaticpageService()->getStaticpageAll();
    	$staticpageArray = array();
    	while ($x = $staticpage->getNext()) {
    		$staticpageArray[] = array(
    			'id' => $x->getId(),
    			'title' => $x->getTitle(),
    			'url' => $x->getUrl(),
    			'delete' => Engine_LinkMaker::GetURLByContentID(
    				'controlpanel-staticpages-delete',
    				$x->getUrl(),
    				'url'
    			),
    			'edit' => Engine_LinkMaker::GetURLByContentID(
    				'controlpanel-staticpages-edit',
    				$x->getUrl(),
    				'url'
    			),
    			'view' => Engine_LinkMaker::GetURLByContentID(
    				'controlpanel-staticpages-view',
    				$x->getUrl(),
    				'url'
    			),
    		);
    	}
    	$this->assign('staticpages', $staticpageArray);
    }

}